Optimal. Leaf size=174 \[ \frac {(6 a-5 b) b^2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{2 a^{7/2} (a-b)^{3/2} d}+\frac {\left (2 a^2+a b-5 b^2\right ) \coth (c+d x)}{2 a^3 (a-b) d}-\frac {(2 a-5 b) \coth ^3(c+d x)}{6 a^2 (a-b) d}-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a (a-b) d \left (a-(a-b) \tanh ^2(c+d x)\right )} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 174, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 23, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.174, Rules used = {3266, 479, 584,
214} \begin {gather*} \frac {b^2 (6 a-5 b) \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{2 a^{7/2} d (a-b)^{3/2}}-\frac {(2 a-5 b) \coth ^3(c+d x)}{6 a^2 d (a-b)}+\frac {\left (2 a^2+a b-5 b^2\right ) \coth (c+d x)}{2 a^3 d (a-b)}-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a d (a-b) \left (a-(a-b) \tanh ^2(c+d x)\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 214
Rule 479
Rule 584
Rule 3266
Rubi steps
\begin {align*} \int \frac {\text {csch}^4(c+d x)}{\left (a+b \sinh ^2(c+d x)\right )^2} \, dx &=\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right )^3}{x^4 \left (a-(a-b) x^2\right )^2} \, dx,x,\tanh (c+d x)\right )}{d}\\ &=-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a (a-b) d \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \frac {\left (1-x^2\right ) \left (2 a-5 b+(-2 a+b) x^2\right )}{x^4 \left (a+(-a+b) x^2\right )} \, dx,x,\tanh (c+d x)\right )}{2 a (a-b) d}\\ &=-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a (a-b) d \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac {\text {Subst}\left (\int \left (\frac {2 a-5 b}{a x^4}+\frac {-2 a^2-a b+5 b^2}{a^2 x^2}+\frac {(6 a-5 b) b^2}{a^2 \left (a-(a-b) x^2\right )}\right ) \, dx,x,\tanh (c+d x)\right )}{2 a (a-b) d}\\ &=\frac {\left (2 a^2+a b-5 b^2\right ) \coth (c+d x)}{2 a^3 (a-b) d}-\frac {(2 a-5 b) \coth ^3(c+d x)}{6 a^2 (a-b) d}-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a (a-b) d \left (a-(a-b) \tanh ^2(c+d x)\right )}+\frac {\left ((6 a-5 b) b^2\right ) \text {Subst}\left (\int \frac {1}{a-(a-b) x^2} \, dx,x,\tanh (c+d x)\right )}{2 a^3 (a-b) d}\\ &=\frac {(6 a-5 b) b^2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right )}{2 a^{7/2} (a-b)^{3/2} d}+\frac {\left (2 a^2+a b-5 b^2\right ) \coth (c+d x)}{2 a^3 (a-b) d}-\frac {(2 a-5 b) \coth ^3(c+d x)}{6 a^2 (a-b) d}-\frac {b \text {csch}^3(c+d x) \text {sech}(c+d x)}{2 a (a-b) d \left (a-(a-b) \tanh ^2(c+d x)\right )}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.83, size = 210, normalized size = 1.21 \begin {gather*} \frac {(2 a-b+b \cosh (2 (c+d x))) \text {csch}^4(c+d x) \left (\frac {3 (6 a-5 b) b^2 \tanh ^{-1}\left (\frac {\sqrt {a-b} \tanh (c+d x)}{\sqrt {a}}\right ) (2 a-b+b \cosh (2 (c+d x)))}{(a-b)^{3/2}}+4 \sqrt {a} (a+3 b) (2 a-b+b \cosh (2 (c+d x))) \coth (c+d x)-2 a^{3/2} (2 a-b+b \cosh (2 (c+d x))) \coth (c+d x) \text {csch}^2(c+d x)-\frac {3 \sqrt {a} b^3 \sinh (2 (c+d x))}{a-b}\right )}{24 a^{7/2} d \left (b+a \text {csch}^2(c+d x)\right )^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(370\) vs.
\(2(158)=316\).
time = 1.61, size = 371, normalized size = 2.13
method | result | size |
derivativedivides | \(\frac {-\frac {\frac {a \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-3 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-8 b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{3}}-\frac {1}{24 a^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}-\frac {-8 b -3 a}{8 a^{3} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {2 b^{2} \left (\frac {\frac {b \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a -2 b}+\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a -2 b}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (6 a -5 b \right ) a \left (\frac {\left (\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a -2 b}\right )}{a^{3}}}{d}\) | \(371\) |
default | \(\frac {-\frac {\frac {a \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{3}-3 a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )-8 b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{8 a^{3}}-\frac {1}{24 a^{2} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )^{3}}-\frac {-8 b -3 a}{8 a^{3} \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}-\frac {2 b^{2} \left (\frac {\frac {b \left (\tanh ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{2 a -2 b}+\frac {b \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{2 a -2 b}}{a \left (\tanh ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-2 a \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+4 b \left (\tanh ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+a}+\frac {\left (6 a -5 b \right ) a \left (\frac {\left (\sqrt {-b \left (a -b \right )}+b \right ) \arctan \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}-a +2 b \right ) a}}-\frac {\left (\sqrt {-b \left (a -b \right )}-b \right ) \arctanh \left (\frac {a \tanh \left (\frac {d x}{2}+\frac {c}{2}\right )}{\sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a \sqrt {-b \left (a -b \right )}\, \sqrt {\left (2 \sqrt {-b \left (a -b \right )}+a -2 b \right ) a}}\right )}{2 a -2 b}\right )}{a^{3}}}{d}\) | \(371\) |
risch | \(-\frac {-18 a \,b^{2} {\mathrm e}^{8 d x +8 c}+15 b^{3} {\mathrm e}^{8 d x +8 c}-36 a^{2} b \,{\mathrm e}^{6 d x +6 c}+102 a \,b^{2} {\mathrm e}^{6 d x +6 c}-60 b^{3} {\mathrm e}^{6 d x +6 c}+48 a^{3} {\mathrm e}^{4 d x +4 c}+20 a^{2} b \,{\mathrm e}^{4 d x +4 c}-158 a \,b^{2} {\mathrm e}^{4 d x +4 c}+90 b^{3} {\mathrm e}^{4 d x +4 c}-16 a^{3} {\mathrm e}^{2 d x +2 c}-12 a^{2} b \,{\mathrm e}^{2 d x +2 c}+82 a \,b^{2} {\mathrm e}^{2 d x +2 c}-60 b^{3} {\mathrm e}^{2 d x +2 c}-4 a^{2} b -8 a \,b^{2}+15 b^{3}}{3 a^{3} d \left ({\mathrm e}^{2 d x +2 c}-1\right )^{3} \left (a -b \right ) \left (b \,{\mathrm e}^{4 d x +4 c}+4 a \,{\mathrm e}^{2 d x +2 c}-2 b \,{\mathrm e}^{2 d x +2 c}+b \right )}+\frac {3 b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \sqrt {a^{2}-a b}-b \sqrt {a^{2}-a b}-2 a^{2}+2 a b}{b \sqrt {a^{2}-a b}}\right )}{2 \sqrt {a^{2}-a b}\, \left (a -b \right ) d \,a^{2}}-\frac {5 b^{3} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \sqrt {a^{2}-a b}-b \sqrt {a^{2}-a b}-2 a^{2}+2 a b}{b \sqrt {a^{2}-a b}}\right )}{4 \sqrt {a^{2}-a b}\, \left (a -b \right ) d \,a^{3}}-\frac {3 b^{2} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \sqrt {a^{2}-a b}-b \sqrt {a^{2}-a b}+2 a^{2}-2 a b}{b \sqrt {a^{2}-a b}}\right )}{2 \sqrt {a^{2}-a b}\, \left (a -b \right ) d \,a^{2}}+\frac {5 b^{3} \ln \left ({\mathrm e}^{2 d x +2 c}+\frac {2 a \sqrt {a^{2}-a b}-b \sqrt {a^{2}-a b}+2 a^{2}-2 a b}{b \sqrt {a^{2}-a b}}\right )}{4 \sqrt {a^{2}-a b}\, \left (a -b \right ) d \,a^{3}}\) | \(632\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 3427 vs.
\(2 (159) = 318\).
time = 0.47, size = 7110, normalized size = 40.86 \begin {gather*} \text {too large to display} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.72, size = 220, normalized size = 1.26 \begin {gather*} \frac {\frac {3 \, {\left (6 \, a b^{2} - 5 \, b^{3}\right )} \arctan \left (\frac {b e^{\left (2 \, d x + 2 \, c\right )} + 2 \, a - b}{2 \, \sqrt {-a^{2} + a b}}\right )}{{\left (a^{4} - a^{3} b\right )} \sqrt {-a^{2} + a b}} + \frac {6 \, {\left (2 \, a b^{2} e^{\left (2 \, d x + 2 \, c\right )} - b^{3} e^{\left (2 \, d x + 2 \, c\right )} + b^{3}\right )}}{{\left (a^{4} - a^{3} b\right )} {\left (b e^{\left (4 \, d x + 4 \, c\right )} + 4 \, a e^{\left (2 \, d x + 2 \, c\right )} - 2 \, b e^{\left (2 \, d x + 2 \, c\right )} + b\right )}} + \frac {8 \, {\left (3 \, b e^{\left (4 \, d x + 4 \, c\right )} - 3 \, a e^{\left (2 \, d x + 2 \, c\right )} - 6 \, b e^{\left (2 \, d x + 2 \, c\right )} + a + 3 \, b\right )}}{a^{3} {\left (e^{\left (2 \, d x + 2 \, c\right )} - 1\right )}^{3}}}{6 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {1}{{\mathrm {sinh}\left (c+d\,x\right )}^4\,{\left (b\,{\mathrm {sinh}\left (c+d\,x\right )}^2+a\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________